<?php
	require 'config.php';
	require 'single-side.php';
	$title = 'html5网页';
	$cid = intval($_GET['id']);
	$condition = array('cates'=>$cid,'DESC'=>'addtime','LIMIT'=>'0,21');
	$list = $_->product->_select(array('id','title','faceimg'),array_filter($condition));

	$smarty->_assign(array('title','list'));
	if(!$list)$temp="erro.html";
	$smarty->_display($temp);

?>